﻿using System.Windows;
using MoreEPG.ViewModel;
using MoreEPG.View;
using GalaSoft.MvvmLight.Messaging;
using Fluent;
using MoreEPG.Helper;


namespace MoreEPG
{
    /// <summary>
    /// Description for MainWindow.
    /// </summary>
    public partial class MainWindow : RibbonWindow
    {
        /// <summary>
        /// Initializes a new instance of the MainWindow class.
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            Closing += (s, e) => ViewModelLocator.Cleanup();

            Messenger.Default.Register<string>(
                this,
                m =>
                {
                    if (m == "Close")
                    {
                        this.Close();
                    }
                });
           
        }

        
    }
}